import request from '@/utils/request'

// 查询交通信息列表
export function listTrafficInfo(query) {
  return request({
    url: '/system/TrafficInfo/list',
    method: 'get',
    params: query
  })
}

// 查询交通信息详细
export function getTrafficInfo(trafficId) {
  return request({
    url: '/system/TrafficInfo/' + trafficId,
    method: 'get'
  })
}

// 新增交通信息
export function addTrafficInfo(data) {
  return request({
    url: '/system/TrafficInfo',
    method: 'post',
    data: data
  })
}

// 修改交通信息
export function updateTrafficInfo(data) {
  return request({
    url: '/system/TrafficInfo',
    method: 'put',
    data: data
  })
}

// 删除交通信息
export function delTrafficInfo(trafficId) {
  return request({
    url: '/system/TrafficInfo/' + trafficId,
    method: 'delete'
  })
}
